<template>
  <div class="bo">
    <div class="box">
      <video autoplay muted loop
        poster="//tianqi-stream.2345cdn.net/tqpcimg/tianqiimg/theme4/V2Images/bg_duoyun.png?x-oss-process=image/format,jpg/quality,Q_30">
        <source src="//tianqi-stream.2345cdn.net/tqpcimg/tianqiimg/theme4/V2Images/MP4/duoyun.mp4" type="video/mp4">
      </video>
      <div class="main">
        <div class="top">
          <p>广阳</p>
          <span>[切换城市]</span>
        </div>
        <div class="center">
          <p>29°</p>
          <img src="@/assets//微信图片_20230512164009.png" alt="">
          <div class="main_box">
            <p>晴</p>
            <button>56 良</button>
          </div>
        </div>
        <div class="bottom">
          <ul>
            <li>温度 16~28°</li>
            <li>|</li>
            <li>紫外线 无</li>
            <li>|</li>
            <li>湿度 34%</li>
            <li>|</li>
            <li>20:02更新</li>
          </ul>
        </div>
        <div class="box2">
          <Tianqi class="tianqi"></Tianqi>
          <Lunbo class="lunbo"></Lunbo>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
import Tianqi from '@/components/Tianqi'
import Lunbo from '@/components//Lunbo'
export default {
  components: {
    Tianqi,
    Lunbo
  }
}
</script>

<style lang="scss" scoped>
.bo {
  background-color: #F6F8FA;
  width: 100%;
  height: 100vh;
}

.box {
  position: relative;
  width: 100%;

  video {
    width: 100%;
  }

  .main {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    position: absolute;
    left:0;
    right: 0;
    top: 0;
    margin: auto;
    color: #fff;

    .top {
      display: flex;
      align-items: center;
      margin-top: 30px;
      height: 30px;

      p {
        font-size: 12px;
        margin-right: 10px;
      }

      span {
        font-size: 12px;
      }
    }

    .center {
      display: flex;
      align-items: center;

      p {
        font-size: 38px;
      }

      img {
        width: 30px;
        height: 30px;
        margin: 0 10px;
      }

      .main_box {
        p {
          font-size: 6px;
        }

        button {
          font-size: 8px;
          border-radius: 10px;
          outline: none;
          border: none;
          color: #FFC513;
          padding: 0 5px;
          background-color: #fff;
        }
      }
    }

    .bottom {
      height: 20px;

      ul {
        display: flex;
        align-items: center;
        align-items: center;

        li {
          margin-right: 5px;
          font-size: 12px;
        }
      }
    }
  }
  .box2{
    // background-color: rgba(255, 255, 255,0);
    // // opacity: 0;
    // border-radius: 20px;
    margin-top: 30px;
    overflow: hidden;
    width: 100%;
    height:100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .tianqi{
      width: 68%;
    }
    .lunbo{
      width: 30%;
    }
  }
}</style>